/**
 * 标签模型
 * 
*/
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("tags", {
        id: {
            type: Sequelize.UUID,
            notNull: true,
            primaryKey: true,
            defaultValue: Sequelize.UUIDV4,
        },
        tagName: {
            type: Sequelize.STRING,
            notNull: true,
            notEmpty: true,
            comment: '标签名称',
            field:'tag_name'
        },
        state: {
            type: Sequelize.BOOLEAN,
            comment: '状态',
            defaultValue: true
        },
        tagDesc: {
            type: Sequelize.STRING,
            comment: '标签描述',
            field:'tag_desc'
        },
    })
}